import { Component } from "@angular/core"
import { User } from "../classes/User"
@Component({
    selector:"userForm",
    templateUrl:"../templates/app.component.userForm.html",
    styleUrls:["../public/css/bootstrap.min.css","../public/css/styles.css"]
})

export class userForm {
    userArr:Array<User> = [
        new User(1,"Archer",25),
        new User(2,"iqkz",32)
    ]

// userArr:any = [
//         {name:"Archer",age:25},
//         {name:"iqkz",age:32}
//     ]



    addUser(user:User){
        this.userArr.push(user)
    }

    test=1
    get diagnostic() { return JSON.stringify(this.testUser); }

    testUser  =  new User(1,"TestArcher",25)
}